/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.LineBorder;
import org.w3c.dom.*;

/**
 *
 * @author Ter Murga Victor
 */
public class CommentaireView extends JPanel {

    public CommentaireView(Element brique, Dimension ecran) {
        super(new GridLayout(1,0));
        setBorder(new LineBorder(Color.BLUE,3));
        setPreferredSize(new Dimension((ecran.width-55)/3, (ecran.height-160)/2));
        setToolTipText("brique Commentaires");
        //this.brique = brique;

        setLayout(null);
        JTextArea name = new JTextArea("Commentaires");
        name.setBackground(Color.blue);
      //  name.setFont(Utility.font);
        name.setBounds(Utility.thickness, Utility.thickness, (ecran.width-55)/3-Utility.thickness*2, 20);
        add(name);
        
        JTextArea commentaire = new JTextArea();
        commentaire.setText("qsfdsqgq dw gs g sdg sd gsd gsd g sssdsdbg fd hdfshs gshdy fhj gdhgf ");
        commentaire.setLineWrap(true);
        JScrollPane scrollPane = new JScrollPane(commentaire);
        scrollPane.setPreferredSize(new Dimension((ecran.width-55)/3, (ecran.height-160)/2));
        scrollPane.setBorder(null);
        scrollPane.setBounds(Utility.thickness, 20+Utility.thickness, (ecran.width-55)/3-Utility.thickness*2, (ecran.height-160)/2-20-Utility.thickness*2);
        add(scrollPane);

        
    }



}
